﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

#if DEBUG
namespace Emulator.DebugHelper
{
    public static class HelpExtension
    {
        public static string ToBinaryString(this byte aValue)
        {
            StringBuilder mSb = new StringBuilder();
            for (int i = 7; i >= 0; i--)
            {
                mSb.Append(((aValue & (1 << i)) >> i).ToString());
                mSb.Append(" ");
            }
            return mSb.ToString();
        }
    }
}
#endif
